package day5.cal;

public abstract class Cal {
    protected int num1;
    protected int num2;

    public Cal() {
    }

    public Cal(int num1, int num2) {
        this.num1 = num1;
        this.num2 = num2;
    }

    /*public int getResult() {
        return 0;
    }*/

    // Abstract method in non-abstract class
    // 抽象方法就是在父类里面定义一个规范，让子类去实现
    public abstract int getResult();
}
